from app import create_app
import re
app=create_app()

@app.template_filter('listcut')
def do_listreverse(li):
    body = re.split('[！。]', li)
    while '' in body:
        body.remove('')
    return body

@app.template_filter('list7')
def do_listreverse(li):
    body=li[:7]
    return body


if __name__=='__main__':
    app.run(debug=True)